// (Convert pounds into kilograms) Write a program that converts pounds into kilosixgrams. The program prompts the user to enter a number in pounds, converts it 
// to kilograms, and displays the result. One pound is 0.454 kilograms. 
// sample run:

import java.util.Scanner;

public class test24 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        // 提示用户输入磅数
        System.out.print("Enter a number in pounds: ");
        double pounds = input.nextDouble();
        
        // 将磅转换为千克（1磅 = 0.454千克）
        double kilograms = pounds * 0.454;
        
        // 显示结果
        System.out.println(pounds + " pounds is " + kilograms + " kilograms");
        
        // 关闭Scanner
        input.close();
    }
}